<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'book.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="css/bookMng.css">

  </head>
  
  <body>
    <div class="top">
		<div class="topLeft">
			<div>Hello</div>
		</div>
		<div class="topRight">
			<div><a href="jsp/homepage.jsp">homepage</a>&nbsp&nbsp&nbsp</div>
			<div><a href="LoginServlet">all books</a>&nbsp&nbsp&nbsp</div>
		</div>
	</div>
	<div class="middle">
		<div id="middleTop">
			<div id="banner">Book Management</div>
		</div>
		<div id="middle">
			<form action="ModifyServlet">
			<div id="head"><input type="image" value="Modify"> this book's data or</div>
			<div id="head"><a href="DeleteServlet?id=${requestScope.book['id']}" >Delete</a> this book</div>
			<div id="table">
				<div id="tableLeft">
					<div>Book ID :</div>
					<div>Book :</div>
					<div>Price(unit:YUAN):</div>
					<div>Author:</div>
				</div>
				<div id="tableRight">
						<div><input type="text" name="id" value="${requestScope.book['id']}" readonly="true"></div>
						<div><input type="text" name="name" value="${requestScope.book['name']}"></div>
						<div><input type="text" name="price" value="${requestScope.book['price']}"></div>
						<div><input type="text" name="author" value="${requestScope.book['author']}"></div>
				</div>
			</div>
			</form>
		</div>
	</div>
  </body>
</html>
